package com.jboost.hyk.library.mapper;

import java.util.List;

import com.jboost.hyk.library.entity.KnowledgeLibrary;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 知识库
 * @Author: cxn
 * @Date:   2022-11-01
 * @Version: V1.0
 */
public interface KnowledgeLibraryMapper extends BaseMapper<KnowledgeLibrary> {

    void subtractPointCount(@Param("libraryIds") String [] libraryIds);

    List<KnowledgeLibrary> listAllByIds(String [] libraryIds);

    List<KnowledgeLibrary> listByKpId(String kpId);

    Integer countImportById(String id);
}
